<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc  添加
@author LuoAnDong
@since 2019-05-18 23:04:49
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="addForm" style="float:left;width:100%">
								
									<input type="hidden" name="formToken" th:value="${session.formToken}" />

<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">类型名称</label>
	<div class="col-md-9">
		<input class="form-control" id="typeMenusName" type="text" name="typeMenusName" placeholder="类型名称">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">菜单类型(1主导航/2子菜单/3链接/4模块)</label>
	<div class="col-md-9">
		<input class="form-control" id="typeMenusType" type="text" name="typeMenusType" placeholder="菜单类型(1主导航/2子菜单/3链接/4模块)">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">菜单排序</label>
	<div class="col-md-9">
		<input class="form-control" id="typeMenusSort" type="text" name="typeMenusSort" placeholder="菜单排序">
	</div>
</div>
							
								</form>
							</div>

							<!-- <div class="card-footer">
								<button class="btn btn-primary" style="float:right" onclick="save()" type="button">保存</button>
							</div> -->

						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<!-- <script th:src="@{/asserts/vendors/jquery/js/jquery.min.js}"></script>
	<script th:src="@{/asserts/vendors/jquery.form/jquery.form.min.js}"></script>

	<script th:src="@{/asserts/vendors/layer/layer.js}"></script>
	<script th:src="@{/asserts/js/global.js}"></script>

	<script type="text/javascript">
		// 保存操作
		function save() {
			console.log('save');
			$("#addForm").ajaxSubmit({
				url : ctx+"portal/desktop/web/menusType/save",
				type : "POST",
				headers : {
					'Content-Type' : 'application/x-www-form-urlencoded'
				},
				success : function(data) {
					if (data.code == 200) {
						layer.msg("操作成功!");
					} else {
						layer.alert(data.message);
					}
				}
			});
		}
	</script>
 -->
 	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		
		function submitHandler() {
			$.operate.save(ctx+"portal/desktop/web/menusType/save" , $('#addForm').serialize());
	    }
		
	</script>
 	
</body>
</html>

